class Person {
    name: string
    age: number
    constructor(name: string, age: number) {
        this.name = name
        this.age = age
    }
    eating() {
        console.log(this.name + 'eating apple')
    }
}

const person = new Person('zhangsan', 18)

export{}